<template>
	<view class="edit-password-view">
		<view class="editpass-content">
			<view class="edit-title">修改登录密码</view>
			<van-field :value="mobile" @change="mobile = $event.detail" :border="false" placeholder="手机号" clearable>
				<view class="fx-center-center" slot="left-icon">
					<image src="/static/phone_icon.png" mode="widthFix" class="left-icon"></image>
				</view>
			</van-field>
			<van-field :value="code" @change="code = $event.detail" :border="false" placeholder="验证码" clearable>
				<view class="fx-center-center" slot="left-icon">
					<image src="/static/code_icon.png" mode="widthFix" class="left-icon"></image>
				</view>
				<template slot="button">
					<view style="color: #4078E5;">获取验证码</view>
				</template>
			</van-field>
			<van-field :value="password" @change="password = $event.detail" :border="false" placeholder="设置登录密码"
				clearable>
				<view class="fx-center-center" slot="left-icon">
					<image src="/static/password_icon.png" mode="widthFix" class="left-icon"></image>
				</view>
			</van-field>
			<view class="login-btns">
				<van-button block color="#4078E5" @click="submit">确定修改</van-button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				mobile: '',
				code: '',
				password: ''
			};
		},
		methods: {
			submit() {

			}
		}
	}
</script>

<style scoped lang="scss">
	.edit-password-view {
		min-height: 100vh;
		background-color: #fff;
		box-sizing: border-box;

		.editpass-content {
			padding: 72rpx 48rpx;

			.edit-title {
				font-size: 44rpx;
				font-weight: bold;
				margin-bottom: 48rpx;
			}

			.left-icon {
				width: 32rpx;
				height: 32rpx;
				margin-right: 16rpx;
			}
		}

		.login-btns {
			margin-top: 64rpx;
		}
	}

	::v-deep .van-cell {
		background-color: #F1F3F6 !important;
		border-radius: 4rpx;
		margin-top: 24rpx;
		padding: 34rpx 30rpx;
	}
</style>